﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace ChatServerService
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] 
            { 
                new ChatServerService() 
            };
            ServiceBase.Run(ServicesToRun);

            //must run netsh http add urlacl url=http://+:8080/ChatServerService user=DOMAIN\user as Administrator for service to run.
            //ChatServerService service = new ChatServerService();

            //service.OnStart();

            //while (true)
            //{

            //}
            
        }
    }
}
